
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
//导入iview
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
Vue.use(ViewUI);


//导入ElementUI
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

//导入组件页头MyHeader
import MyHeader from '@/components/MyHeader.vue'
Vue.use(MyHeader)
Vue.component('my_header',MyHeader)

//导入组件页尾MyFooter
import MyFooter from '@/components/MyFooter.vue'
Vue.use(MyFooter)
Vue.component('my_footer',MyFooter)

//导入公共样式
import './assets/css/common.css'

// 导入axios
Vue.prototype.axios=axios;
axios.defaults.baseURL="http://localhost:3000/v1" 
import  VueResource  from 'vue-resource'
Vue.use(VueResource)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  components:{MyHeader,MyFooter},
  render: h => h(App)
}).$mount('#app')
